<script setup>
import { useCounterStore } from '@/store/counter.js';
const counterStore = useCounterStore();
</script>

<template>
    <div>
        Son1组件 - {{ counterStore.count }} - {{ counterStore.double }}
        <button @click="counterStore.addCount">+</button>
    </div>
</template>